package com.sansan.qiangji.mapper.system;

import com.sansan.qiangji.entity.system.Power;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PowerMapper {
    List<Power> findAllPower();

    List<Power> powerList(Power power);

    Power findByPowerId(@Param("powerId") Integer powerId);

    List<Power> findByPowerName(@Param("powerName") String powerName);

    int addPower(Power power);

    int updatePower(Power power);

    int deleteById(@Param("powerId") Integer powerId);

    List<Power> findByPowerNameOrPowerPath(@Param("powerName") String powerName, @Param("powerPath") String powerPath);
}
